<template>
  <AppTopnav></AppTopnav>
  <AppHeader></AppHeader>
  <AppHeaderSticky></AppHeaderSticky>
  <div class="app-body">
    <!-- 二级路由 首页也是二级路由  -->
    <router-view></router-view>
  </div>
  <AppFooter></AppFooter>
</template>

<script>
import AppTopnav from "@/components/app-topnav.vue";
import AppHeader from "@/components/app-header.vue";
import AppFooter from "@/components/app-footer.vue";
import AppHeaderSticky from "@/components/app-header-sticky.vue";
import { useStore } from "vuex";
export default {
  components: {
    AppTopnav,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  },
  setup(props) {
    const store = useStore();
    store.dispatch("category/getlist");
  },
};
</script>

<style lang="less" scoped>
.app-body {
  min-height: 600px;
}
</style>